/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package py.com.spadons.esmetil.entities.views;

import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author spadons
 */
@Entity
@Table(name = "dato_mes")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "DatoMes.findAll", query = "SELECT d FROM DatoMes d"),
    @NamedQuery(name = "DatoMes.findByCodigo", query = "SELECT d FROM DatoMes d WHERE d.codigo = :codigo"),
    @NamedQuery(name = "DatoMes.findByAnho", query = "SELECT d FROM DatoMes d WHERE d.anho = :anho"),
    @NamedQuery(name = "DatoMes.findByMes", query = "SELECT d FROM DatoMes d WHERE d.mes = :mes"),
    @NamedQuery(name = "DatoMes.findByEstacion", query = "SELECT d FROM DatoMes d WHERE d.estacion = :estacion"),
    @NamedQuery(name = "DatoMes.findByEstacionDetalle", query = "SELECT d FROM DatoMes d WHERE d.estacionDetalle = :estacionDetalle"),
    @NamedQuery(name = "DatoMes.findByMagnitud", query = "SELECT d FROM DatoMes d WHERE d.magnitud = :magnitud"),
    @NamedQuery(name = "DatoMes.findByUnidad", query = "SELECT d FROM DatoMes d WHERE d.unidad = :unidad"),
    @NamedQuery(name = "DatoMes.findByMaximo", query = "SELECT d FROM DatoMes d WHERE d.maximo = :maximo"),
    @NamedQuery(name = "DatoMes.findByMedia", query = "SELECT d FROM DatoMes d WHERE d.media = :media"),
    @NamedQuery(name = "DatoMes.findByMesAnho", query = "SELECT d FROM DatoMes d WHERE d.anho = :anho and d.mes = :mes and d.estacionDetalle = :estacionDetalle"),
    @NamedQuery(name = "DatoMes.findByMinimo", query = "SELECT d FROM DatoMes d WHERE d.minimo = :minimo")})
public class DatoMes implements Serializable {
    @Size(max = 2147483647)
    @Column(name = "dia")
    private String dia;
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "codigo")
    private BigInteger codigo;
    @Size(max = 2147483647)
    @Column(name = "anho")
    private String anho;
    @Size(max = 2147483647)
    @Column(name = "mes")
    private String mes;
    @Column(name = "estacion")
    private Integer estacion;
    @Column(name = "estacion_detalle")
    private BigInteger estacionDetalle;
    @Column(name = "magnitud")
    private Integer magnitud;
    @Column(name = "unidad")
    private Integer unidad;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "maximo")
    private Double maximo;
    @Column(name = "media")
    private Double media;
    @Column(name = "minimo")
    private Double minimo;

    public DatoMes() {
    }

    public BigInteger getCodigo() {
        return codigo;
    }

    public void setCodigo(BigInteger codigo) {
        this.codigo = codigo;
    }

    public String getAnho() {
        return anho;
    }

    public void setAnho(String anho) {
        this.anho = anho;
    }

    public String getMes() {
        return mes;
    }

    public void setMes(String mes) {
        this.mes = mes;
    }

    public Integer getEstacion() {
        return estacion;
    }

    public void setEstacion(Integer estacion) {
        this.estacion = estacion;
    }

    public BigInteger getEstacionDetalle() {
        return estacionDetalle;
    }

    public void setEstacionDetalle(BigInteger estacionDetalle) {
        this.estacionDetalle = estacionDetalle;
    }

    public Integer getMagnitud() {
        return magnitud;
    }

    public void setMagnitud(Integer magnitud) {
        this.magnitud = magnitud;
    }

    public Integer getUnidad() {
        return unidad;
    }

    public void setUnidad(Integer unidad) {
        this.unidad = unidad;
    }

    public Double getMaximo() {
        return maximo;
    }

    public void setMaximo(Double maximo) {
        this.maximo = maximo;
    }

    public Double getMedia() {
        return media;
    }

    public void setMedia(Double media) {
        this.media = media;
    }

    public Double getMinimo() {
        return minimo;
    }

    public void setMinimo(Double minimo) {
        this.minimo = minimo;
    }

    public String getDia() {
        return dia;
    }

    public void setDia(String dia) {
        this.dia = dia;
    }
    
}
